// 17语法
// import React from 'react';
// import ReactDOM from 'react-dom'; // 1. 导包位置不同
// import App from './App'

// ReactDOM.render(<App/>, document.getElementById('root'))// 渲染方式不同

// react 18 语法
import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
    <App />
);


